package models.common;

import java.util.*;

import play.Logger;
import play.db.ebean.*;
import play.db.ebean.Model.Finder;
import play.data.validation.Constraints.*;
import play.data.format.*;

import javax.persistence.*;

import com.avaje.ebean.Ebean;
import com.avaje.ebean.Query;

@Entity
public class Application extends Model{
	@Id
	public Integer appId;
	  
	public String name;
	
	public static Finder<Long,Application> find = new Finder(
		Long.class, Application.class
	);
	
	public static List<Application> getAll(){
		Query<Application> query = Ebean.find(Application.class);
		
		return query.findList();
	}
}
